﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WPFStudy.Command;

namespace WPFStudy.ViewModel
{
    /// <summary>
    /// CommandWindow-VM
    /// </summary>
    public class CommandWindowVM
    {
        public CommandWindowVM()
        {
            ShowCmd = new CommandWindowCmd(Show);
        }

        public CommandWindowCmd ShowCmd { get; set; }

        public void Show()
        {
            MessageBox.Show("这是由CommandWindowVM.cs->Show触发的消息", "提示", MessageBoxButton.OK, MessageBoxImage.Information);
        }
    }
}
